package com.hopu.product.domain;
/**
 * 产品实体类
 * @author supeng
 *
 */
public class Product {

	private int pid;
	private String pname;
	private String ptype;
	private int price;
	private int pnum;
	private String content;
	public Product(int pid, String pname, String ptype, int price, int pnum, String content) {
		super();
		this.pid = pid;
		this.pname = pname;
		this.ptype = ptype;
		this.price = price;
		this.pnum = pnum;
		this.content = content;
	}
	public Product() {
		super();
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public String getPtype() {
		return ptype;
	}
	public void setPtype(String ptype) {
		this.ptype = ptype;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getPnum() {
		return pnum;
	}
	public void setPnum(int pnum) {
		this.pnum = pnum;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Override
	public String toString() {
		return "Product [pid=" + pid + ", pname=" + pname + ", ptype=" + ptype + ", price=" + price + ", pnum=" + pnum
				+ ", content=" + content + "]";
	}
	
	
}
